package cn.dsp.admin.config;

import lombok.Data;
import org.apache.shiro.authc.AuthenticationToken;

import javax.swing.*;
@Data
public class MyUsernamePasswordToken implements AuthenticationToken {
    private  Integer userId;
    private String  username;
    private String  password;
    private String  salt;
    private boolean rememberMe = false;

    public MyUsernamePasswordToken(String username, String password) {
        this.username = username;
        this.password = password;
    }

    @Override
    public Object getPrincipal() {
        return username;
    }

    @Override
    public Object getCredentials() {
        return password;
    }
}
